home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / sbasic.jar / text / sbasic / common / 03110100.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  2.4 KB  |  43 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>=, <, >, <=, >=, <> - Operatoren [Runtime]</title><meta name="filename" content="text/sbasic/common/03110100"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         p.P2{
  7.                 }
  8.         span.T1{
  9.                 font-weight:bold;}
  10.         </style></head><body>
  11.   
  12.   
  13.   <help:to-be-embedded Eid="operatoren" xmlns:help="http://openoffice.org/2000/help">
  14.   <p class="Head1"><help:link Id="66502">=, <, >, <=, >=, <> - Operatoren [Runtime]</help:link></p>
  15.   <p class="Paragraph">Comparison operators are used to compare two expressions. The result is returned as a Boolean expression that determines whether the comparison is True (-1) or False (0).</p>
  16.   </help:to-be-embedded>
  17.   <p class="Paragraph"><span class="T1">Syntax</span>:</p>
  18.   <p class="Paragraph">Result = Expression1 { = | < | > | <= | >= } Expression2 <help:key-word value="Comparison operators" tag="kw66502_1" xmlns:help="http://openoffice.org/2000/help"/></p>
  19.   <p class="Paragraph"><span class="T1">Parameter</span>:</p>
  20.   <p class="Paragraph">Result : Boolean expression that specifies the result of the comparison. The result returned can only be (-1), if comparison is True, or (0) if it is False.</p>
  21.   <p class="Paragraph">Expression1, Expression2: Any numeric values or strings to be compared.</p>
  22.   <p class="P2">Comparison operators</p>
  23.   <p class="Paragraph">= : Equal to</p>
  24.   <p class="Paragraph">< : Less than</p>
  25.   <p class="Paragraph">> : Greater than</p>
  26.   <p class="Paragraph"><= : Less than or equal to</p>
  27.   <p class="Paragraph">>= : Greater than or equal to</p>
  28.   <p class="Paragraph"><> : Not equal to</p>
  29.   <p class="P2">Example:</p>
  30.   <p class="PropText">Sub ExampleUnequal</p>
  31.   <p class="PropText">DIM sFile As String</p>
  32.   <p class="PropText">DIM sRoot As String REM ' Root directory for file in and output</p>
  33.   <p class="PropText">sRoot = "c:\"</p>
  34.   <p class="PropText">sFile = Dir$( sRoot ,22)</p>
  35.   <p class="PropText">If sFile <> "" Then</p>
  36.   <p class="PropText">Do</p>
  37.   <p class="PropText">Msgbox sFile</p>
  38.   <p class="PropText">sFile = Dir$</p>
  39.   <p class="PropText">Loop Until sFile = ""</p>
  40.   <p class="PropText">End If</p>
  41.   <p class="PropText">End sub</p>
  42.   <p class="PropText"/>
  43.  </body></html>